package com.huc.design.behavior.observer.casedemo;

/**
 * @author huc
 * @version 1.0
 * @note 老师监听类
 * @date 2021/10/8 13:49
 */
public class TeachEventListener implements BellEventListener {
    @Override
    public void hander(RingEvent e) {
        if (e.getSound()) {
            System.out.println("老师来上课了。。。");
        } else {
            System.out.println("老师下课了。。。");
        }
    }
}
